Skip to main content

All Questions

0votes
2answers
763views

Why does ftruncate with a shared memory object not use memory?

I've observed that I can create a shared memory object and give it ostensibly any size with ftruncate, regardless of the resource limits on my system. The code below sets the size to 262 TB, and ...
bgfvdu3w's user avatar
0votes
0answers
189views

shmat returns error (void *) -1 in selinux enabled rhel environment

as per the documentaion:- If SHM_RDONLY is specified in shmflg, the segment is attached for reading and the process must have read permission for the segment. Otherwise the segment is attached for ...
Aryaman Gupta's user avatar

close